<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
    <title>登录</title>
    <style>
    html,body {
    width: 100%;
    height: 100%;
    margin: 0px;
    background: url('../static/img/denglu.jpg') no-repeat;
    background-size: cover;
  }
  .snow{
        width:900px;
        margin:0 auto;
        position:relative;
      }
 #header{ 
    padding: 20px;
    font-size: 70px;
    text-align: center;
    color: white;
 }
  #login_box {
    width:  250px;
    height: 300px;
    background-color: #00000060;
    text-align: center;
    border-radius: 10px;
    padding: 50px 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }

  h2 {
    color: #EBEBEB;
    margin-top: 5%;
  }

  #input-box {
    margin-top: 5%;
  }

  span {
    color: #fff;
  }

  input {
    border: 0;
    width: 60%;
    font-size: 15px;
    color: black;
    background: transparent;
    border-bottom: 2px solid #fff;
    padding: 5px 10px;
    outline: none;
    margin-top: 10px;
  }

  button {
    margin-top: 50px;
    width: 60%;
    height: 30px;
    border-radius: 10px;
    border: 0;
    color:black;
    text-align: center;
    line-height: 30px;
    font-size: 15px;
    background-color: #30cfd0;
  }

  #sign_up {
    margin-top: 45%;
    margin-left: 60%;
      }</style>

<script>
    function Dl(){
            window.open('./首页.html');
     }
   </script>

 
      </head>
      <body>
        <div id="header">欢迎来到GraceVita</div>
        <div id="login_box">
            <h2>账号登陆</h2>
            <div id="input_box">
                <input type="text" placeholder="请输入用户名"></div>
                <div class="input_box"><input type="password" placeholder="请输入密码"></div>
                <button type="button" onclick="Dl()">登录</button>
            </div>
        </body>
        </html>